package o;

import android.app.Activity;
import java.lang.reflect.Constructor;

public class dip {
    private static Class<? extends dxx> ॱ;

    public static dxx ˏ(Activity activity) {
        if (ॱ == null) {
            return new dim(activity);
        }
        try {
            Constructor declaredConstructor = ॱ.getDeclaredConstructor(new Class[]{Activity.class});
            declaredConstructor.setAccessible(true);
            return (dxx) declaredConstructor.newInstance(new Object[]{activity});
        } catch (InstantiationException e) {
            Logger.e("ProtocolBuoyCheckPolicy", "can not instance class:" + ॱ);
            return new dim(activity);
        } catch (Exception e2) {
            Logger.e("ProtocolBuoyCheckPolicy", "can not instance class:" + ॱ);
            return new dim(activity);
        }
    }

    public static void ˊ(Class<? extends dxx> cls) {
        ॱ = cls;
    }
}
